<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
这是修改页面
<form action="/user/updateById" method="post">
    <table border="1">
        <tr>
            <td>姓名：</td>
            <td>
                <input type="text" name="id" th:value="${user.id}" hidden="hidden">
                <input type="text" name="name" th:value="${user.name}">
            </td>
        </tr>

        <tr>
            <td>年龄：</td>
            <td>
                <input type="text" name="age" th:value="${user.age}">
            </td>
        </tr>

        <tr>
            <td>性别：</td>
            <td>
                <input type="radio" value="男" name="sex" th:field="${user.sex}">男
                <input type="radio" value="女" name="sex" th:field="${user.sex}">女
            </td>
        </tr>

        <tr>
            <td colspan="2" align="center">
                <input type="submit" value="确定">
                <input type="reset" value="重置">
            </td>

        </tr>
    </table>
</form>
</body>
</html>